/**
 * Created by Administrator on 2017/11/20.
 */
myTrello.exportExcel=function()
{
    //html table 转 excel
    //e.preventDefault();

    //getting data from our table
    var data_type = 'data:application/vnd.ms-excel';
    var table_div = document.getElementById('tableDiv');
    var table_html = table_div.outerHTML.replace(/ /g, '%20');

    var a = document.createElement('a');
    a.href = data_type + ', ' + table_html;
    a.download = 'exported_table_' + Math.floor((Math.random() * 9999999) + 1000000) + '.xls';
    a.click();
};

myTrello.exportExcel2=function()
{
    //exclude: ".noExl",
    $(".table2excel").table2excel({

        name: "汇总报表",
        filename: "银行汇总报表"+Math.floor((Math.random() * 9999999) + 1000000),
        fileext: ".xls",
        exclude_img: true,
        exclude_links: true,
        exclude_inputs: true
    });
};